package com.junjiao.util;

public class Test {
	
	public enum s{
		ss,fsafdaf,fsa
	}
	
	public static String ss = "cctv";
	
	public void prints(String s,int i){
		s = "hello word google";
		i = 0;
	}
	
	public static void main(String[] args) {
		
		Test t = new Test();
		String str = "hello word baidu";
		int in = 1;
		t.prints(str,in);
		System.out.println(str+" "+in);
		
		System.out.println(s.values().toString());
		
		new Test().s();
		
		new Test.TSIC();
		
		new Test(){
			public void sys(){
				ss = "jiaojun";
				System.out.println(ss);
			}
		};
		String tmp = "SELECT COUNT(0) FROM qa_question q LEFT JOIN qa_answer a ON q.id=a.question_id WHERE 1=1 AND tag02 = 109 AND CLOSE = 1 AND a.status=1 ";
		System.out.println(tmp.substring(tmp.indexOf("FROM"),tmp.indexOf("ORDER BY")));
		
		
	}
	
	static class TSIC{
		public static void main(String[] args) {
			System.out.println("TSIC---"+s.values());
		}
	}
	
	public void s(){
		CYIC cy = new CYIC();
		cy.sys();
		
		class JBIC{
			public void sys(){
				System.out.println("JBIC---"+s.values());
			}
		}
		
		new JBIC().sys();
	}
	
	class CYIC{
		public void sys(){
			try{
			System.out.println("CYIC---"+s.values());
			}finally{
				
			}
		}
	}
	
	
}
